package com.controller.lib.entity

import com.google.gson.annotations.SerializedName

data class BaseResultEntity<T>(
  @SerializedName("code")
  var code: Int,
  @SerializedName("msg")
  var msg: String,
  @SerializedName("result")
  var result: T
) {
  fun isSuccess(): Boolean = code == 0
}






